package com.iring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.iring.util.vos.VOSDataUtil;


/**
 * 获取vos数据controller
 *
 * @author wanggan
 */
@RestController
@RequestMapping("/Data")
public class DataController extends BaseController {

    @Autowired
    VOSDataUtil vosUtil;

    @RequestMapping(value = "/{method}", method = RequestMethod.POST)
    public String getVosInfo(@PathVariable("method") String method, @RequestParam("data") String data) {
        return vosUtil.postData(method, data);
    }

}
